package com.material.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;

@ApiModel("基础的响应参数")
public class BaseRequest {

    @ApiModelProperty(value = "页码",required = true,example = "1")
    @NotNull(message = "页码不能为空")
    private Integer pageNum;
    @ApiModelProperty(value = "页码size",required = true,example = "10")
    @NotNull(message = "页码size不能为空")
    private Integer pageSize;

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }
}
